package com.megagoodsoftware.smugmug;

import android.os.Parcel;
import android.os.Parcelable;

public class SmugMugImage implements Parcelable{

	private int id;
	private String name;
	private String key;
	private String thumbUrl;
	private String smallUrl;
	private String mediumUrl;
	private String tinyUrl;
	private String caption;

	public SmugMugImage(int id, String key, String name) {
		this.id = id;
		this.key = key;
		this.name = name;
	}

	public SmugMugImage(Parcel in) {
		id = in.readInt();
		key = in.readString();
		name = in.readString();
		mediumUrl = in.readString();
		name = in.readString();
		smallUrl = in.readString();
		thumbUrl = in.readString();
		tinyUrl = in.readString();
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getKey() {
		return this.key;
	}

	public void setThumbUrl(String url) {
		thumbUrl = url;
	}

	public String getThumbUrl() {
		return thumbUrl;
	}

	public void setTinyUrl(String url) {
		tinyUrl = url;
	}

	public void setMediumUrl(String url) {
		mediumUrl = url;
	}

	public String getSmallUrl() {
		return smallUrl;
	}

	public String getMediumUrl() {
		return mediumUrl;
	}

	public String getTinyUrl() {
		return tinyUrl;
	}

	public void setSmallUrl(String url) {
		smallUrl = url;
	}

	public String getCaption() {
		return caption;
	}
	public void setCaption(String caption) {
		this.caption = caption;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(getId());
		dest.writeString(getKey());
		dest.writeString(getMediumUrl());
		dest.writeString(getName());
		dest.writeString(getSmallUrl());
		dest.writeString(getThumbUrl());
		dest.writeString(getTinyUrl());
	}
    public static final Parcelable.Creator<SmugMugImage> CREATOR = new Parcelable.Creator<SmugMugImage>() {
        public SmugMugImage createFromParcel(Parcel in) {
            return new SmugMugImage(in);
        }

        public SmugMugImage[] newArray(int size) {
            return new SmugMugImage[size];
        }
    };
}
